package com.youpingou.controller;

import com.youpingou.service.ESDataService;
import com.youpingou.vo.BaseResult;
import com.youpingou.vo.ESData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @auther Created by yuanxinqi
 */
@RestController
@RequestMapping
public class  ESDataController{
    @Autowired
    private ESDataService esDataService;

    @GetMapping("/esData")
    public List<ESData> findESData(){
        List<ESData> list = esDataService.findAll();
        return list;
    }
}